/*
 * @Author: 何 海深 813936564@qq.com
 * @Date: 2023-11-30 16:27:04
 * @LastEditors: 何 海深 813936564@qq.com
 * @LastEditTime: 2024-01-26 11:40:21
 * @FilePath: \vue-project\src\hooks\errorImg\errorImg.ts
 * @Description: 图片处理
 */
import errorImgIcon from '@/assets/images/globalCommon/icon_no_img.png'
/**
 * @description:转换文字的大小
 * @return {ImgHTML}
 */

export const errorImg = (e: any) => {
  e.srcElement.src = errorImgIcon
}
export const getImage = (name: string) => {
  return new URL(`/src/assets/images/${name}`, import.meta.url).href
}
